package com.example.security.controller;

import com.example.security.filter.MyAuthenticationFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.AuthenticationException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/5/29 13:41
 * @version: 0.1
 * @Description :
 * @Modified By:
 */
@RestController
@RequestMapping(value = "/auth")
public class AuthController {



    @GetMapping(value = "getAuthenticationToken")
    public ResponseEntity<?> getAuthenticationToken(
            @RequestParam String username,
            @RequestParam String password) throws AuthenticationException {
        return ResponseEntity.ok("");
    }
}
